<?php
class HomePageBanner extends CWidget
{
	public $postParams=array();
	public $config=array();
	
	public function run()
  	{?>
  		<div>
				<div class="fl">
					<?php  $bannerSmallLeft = BannerDetails::model()->getModel("BANNER-LEFT-IMAGE", array());
						if (!empty($bannerSmallLeft)){ ?>
					<img src="<?php echo ApplicationConfig::getImageUrl("BANNER-IMAGES", array('file_name'=>$bannerSmallLeft->filename));?>" alt="" />
						<?php }else{?>
							<img src="<?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>no_preview.jpg" alt="" height="160px" width="305px"/>
						<?php }?>
				</div>
				<div class="fr">
					<?php  $bannerSmallRight = BannerDetails::model()->getModel("BANNER-RIGHT-IMAGE", array());
						if (!empty($bannerSmallRight)){ ?>
					<img src="<?php echo ApplicationConfig::getImageUrl("BANNER-IMAGES", array('file_name'=>$bannerSmallRight->filename));?>" alt="" />
						<?php }else{?>
							<img src="<?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>no_preview.jpg" alt="" height="160px" width="304px"/>
						<?php }?>
				</div>
				<div class="cl"></div>
			</div>
  		
  	<?php }
}
?>  
 